﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PrattParsing
{
    public class ParseException : Exception
    {
        Token _token;
        public Token Token
        {
            get
            {
                return _token;
            }
        }
        public TextPos Position
        {
            get
            {
                return _token.pos;
            }
        }

        public ParseException(string message, Token token)
            : base(message)
        {
            _token = token;
        }
    }
}
